﻿#pragma once

#include <string>

#include "../ICommand.h"

extern std::uint_least64_t appid;
extern std::u8string key;

extern std::u8string local_from;
extern std::u8string local_to;

extern std::u8string server_from;
extern std::u8string server_to;

extern std::u8string translate(std::u8string_view str, bool isserver) noexcept;

extern void translate_asynchronous(std::u8string str, bool isserver, void (*fun)(std::u8string_view original, std::u8string_view res)) noexcept;

extern bool TranslateCommand_onExecute(const fast_io::vector<std::u8string>& args);
extern ICommand TranslateCommand;

